package com.sls.sys.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sls.sys.dao.MenuDAO;
import com.sls.sys.pojo.PermissionInfoVO;
import com.sls.sys.querybean.MenuQuery;

@Repository("menuDAO")
public class MenuDAOImpl extends SuperDAO<PermissionInfoVO> implements MenuDAO {
	@Override
	public List< PermissionInfoVO> buildMenuLv1(MenuQuery query) {
		List<PermissionInfoVO> list = getSqlSession().selectList(
				"mybatis.xml.PermissionInfoMapper.queryMenuLV1",query);
		return list;
	}

	@Override
	public List<PermissionInfoVO> buildMenuLv2(MenuQuery query) {
		List<PermissionInfoVO> list = getSqlSession().selectList(
				"mybatis.xml.PermissionInfoMapper.queryMenuLV2",query);

		return list;
	}

	@Override
	public List<PermissionInfoVO> buildMenuLv3(MenuQuery query) {
		List<PermissionInfoVO> list = getSqlSession().selectList(
				"mybatis.xml.PermissionInfoMapper.queryMenuLV3",query);
		return list;
	}

	@Override
	public List<PermissionInfoVO> queryNotMenu(MenuQuery query) {
		List<PermissionInfoVO> list = getSqlSession().selectList(
				"mybatis.xml.PermissionInfoMapper.queryNotMenu",query);
		return list;
	}

}
